﻿@model PagedList<RBS.Core.Model.U_Comment>
@using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "评论列表";
    Layout = "~/Views/Shared/_UserLayout.cshtml"; 
}
<script>
    $(function () {

    });
</script>


<!--导航栏-->
@{
    @Html.Partial("_Location");
}
  <div class="tbllist">
<!--列表-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tr>


        <th align="left">点评信息</th> 
         
        <th  >操作</th>
    </tr>
    @if (null != ViewData.Model)
    {
        foreach (var item in ViewData.Model)
        {
        <tr> 
          
            <td class="lh24">
                <h3 class="f14"><a href="/shop/C09E31K29687/" target="_blank">
                                      @{
               var hotelname = new RBS.Core.BLL.Hotel.H_Hotels().GetModelByCache(item.HotelId).H_Name; 
                @Html.ActionLink(@hotelname,"Order","Store",new{area="",hotelid=item.HotelId},null)
                }
                                </a>
                    <a href="/shop/C09E31K29687/coupon/#menu">  @Html.DisplayFor(modelItem => item.jiage)</a></h3>

                <div class="ft">
                    点评：<i class="star_small mr5"><i class="star_red" style="width: 100%;"></i></i>
                    口味：<strong class="co mr10">   @Html.DisplayFor(modelItem => item.weidao)</strong>
                    环境：<strong class="co mr10">    @Html.DisplayFor(modelItem => item.jchj)</strong>
                    服务：<strong class="co">   @Html.DisplayFor(modelItem => item.Column_8)</strong>
                </div>

                <p class="mt5 mb5" style="width: 550px">  @Html.DisplayFor(modelItem => item.Comments)</p>
                <p><a href="javascript:" class="repastInfo tdn" data-url="#">就餐信息</a></p>
                <span class="g9 mt10 mr5">发布时间：  @Html.DisplayFor(modelItem => item.CommentTime)</span>
               
            </td>  
          
            <td align="center">
                @Html.ActionLink("查看点评", "ShowCommont", new { id = item.Id, action = @RBS.Common.RBSEnums.ActionEnum.Edit })
            </td> 
        </tr>
        }
    }
</table></div>
<!--/列表-->
<!--内容底部-->
<div class="line20">
</div>
<div class="pagelist">
    <div class="l-btns">
        <span>显示</span> <span>10 条/页</span><span>共 @Model.TotalPageCount 页 @Model.TotalItemCount 条记录，当前为第 @Model.CurrentPageIndex 页</span>
    </div>
    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false, CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>" }, new { id = "PageContent", @class = "default" })
    @section Scripts{@{Html.RegisterMvcPagerScriptResource();}}
</div>
<!--/内容底部-->


